const mongoose = require('mongoose')

//定义骨架
const dynamicSchema = mongoose.Schema({
    time: Date,
    name: String,
    headUrl: String,
    content: String,
    imgUrl: String,
    Link: Number,
    comment:Number
})

//定义模型
const dynamicModel = mongoose.model('dynamics', dynamicSchema)
module.exports=dynamicModel
